package insertthreaddemo;

public class insert {
    public static void main(String[] args) throws InterruptedException {
        Mythread m1 = new Mythread();
        Thread t = new Thread(m1);
        t.start();
//插入线程，线程执行完之后再执行main线程
        t.join();
        for (int i = 0; i < 10; i++) {
            System.out.println("main线程");
        }
    }
}
